var NS = NS || {};
NS.Notification = new Class({

	/**
	 * Audio element
	 * @var {Element}
	 */
	audio: null,

	/**
	 * Constructor
	 * @param {String} name
	 * @param {String} src
	 */
	initialize: function(name, src){
		var id = 'ns-notification-'+name;
		this.audio = $(id) || new Element('audio', {id: id,src: src}).inject(document.body);
	},

	/**
	 * Notify
	 * 
	 */
	notify: function(){
		this.audio.play();
	}
});
